//
//  AXShoppingCartTableViewCell.h
//  hwacdx 购物车 cell
//
//  Created by hwacdx on 2019/4/30.
//  Copyright © 2019 hwacdx. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "AXBaseTableViewCell.h"
#import "AXHomeGoods.h"

NS_ASSUME_NONNULL_BEGIN

@protocol AXShoppingCartTableViewCellDelegate <NSObject>

- (void)shoppingCartTableViewCell_buttonActionAtIndexPath:(NSIndexPath *)indexPath tag:(NSInteger)tag goodsNum:(NSString *)goodsNum;

@end

@interface AXShoppingCartTableViewCell : AXBaseTableViewCell

@property (weak, nonatomic) id<AXShoppingCartTableViewCellDelegate> delegate;

/**
 当前 cell 的索引
 */
@property (strong, nonatomic) NSIndexPath *indexPath;

/**
 当前 cell 是否已选中
 */
@property (nonatomic) BOOL isSelected;

@property (strong, nonatomic) AXHomeGoods *goods;

- (void)setGoods:(AXHomeGoods *)goods valid:(BOOL)valid;

@end

NS_ASSUME_NONNULL_END
